package com.epsilon.pos.proveedores.view;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Shell;

import com.epsilon.commons.util.SWTResourceManager;

public class ProveedorShell extends Shell {

	private ProveedorComposite	proveedorComposite;

	public ProveedorShell( Shell parent ) {
		super( parent, SWT.CLOSE | SWT.TITLE );
		setImage( SWTResourceManager.getImage( ProveedorShell.class, "/com/epsilon/commons/util/images/proveedor.png" ) );

		proveedorComposite = new ProveedorComposite( this, SWT.NONE );
		proveedorComposite.setBounds( 0, 0, 480, 203 );

		createContents();
	}

	/**
	 * Create contents of the shell.
	 */
	protected void createContents() {
		setText( "Agregar proveedor" );
		setSize( 488, 236 );

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

	public ProveedorComposite getProveedorComposite() {
		return proveedorComposite;
	}
}